import React, { Component } from 'react'
import {
  BrowserRouter as Router,
  Route,
  Switch,
} from 'react-router-dom/cjs/react-router-dom.min'
import Login from './pages/Login'
import Layout from './pages/Layout'

export default class App extends Component {
  render() {
    return (
      <Router>
        <div>
          <Switch>
            <Route path="/login" component={Login}></Route>
            <Route path="/home" component={Layout}></Route>
          </Switch>
        </div>
      </Router>
    )
  }
}
